package com.turing.data.model.domain.element;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
* @Description 
* @Author livin
* @Date 2022-02-24
*/
@ApiModel(value ="")
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Builder(toBuilder = true)
    @Accessors(chain = true)
    @AllArgsConstructor
    @NoArgsConstructor
    public class TemplateType extends BaseDo<TemplateType> {

            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
        @TableField("name")
    private String name;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

